package com.syh.billservice;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.syh.feignapi.clients.CompanyClient;
import com.syh.feignapi.clients.CreditsClient;
import com.syh.feignapi.clients.LogClient;
import com.syh.feignapi.config.DefaultFeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"com.syh"}) // 确保配置类和拦截器类所在的包被扫描
@EnableDiscoveryClient
@EnableKnife4j
@EnableFeignClients(defaultConfiguration = DefaultFeignConfig.class,clients = CompanyClient.class)
public class BillServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(BillServiceApplication.class, args);
    }

}
